package com.haulmont.asu.web.ui.gantt;

import com.haulmont.asu.entity.Work;

import java.util.Date;

/**
 * Author: Sergey42
 * Date: 22.12.13 19:53
 */
public class WorkAdapter implements Item {

    Work work;

    WorkAdapter(Work work) {
        this.work = work;
    }

    @Override
    public String getName() {
        return work.getName();
    }

    @Override
    public Date factStart() {
        return work.getFactStartDate();
    }

    @Override
    public Date factFinish() {
        return work.getFactFinishDate();
    }

    @Override
    public Date planStart() {
        return work.getPlanStartDate();
    }

    @Override
    public Date planFinish() {
        return work.getPlanFinishDate();
    }
}
